/*
            Author : Nguyen Van Ty
            Email  : ngvanty_03@yahoo.com
            Date   : 6/11/2011 
          
            */

            using System;               
            using System.Collections.Generic; 
            using System.Text;                                
            namespace BusinessObject{
                /// <summary>
                    /// Define SubCategoryCondition object. This is condition param, that used add to where condition of sql query.
                /// </summary>
                public class SubCategoryCondition {
		#region fields
		private int subCategoryId; 
		private string categoryId; 
		private string subCategoryCode; 
		private string published; 
		private int order; 
  private string sortField;

  private string sortExpression;

		
		#endregion fields
		
		#region constructor
         /// <summary>
            /// Define default constructor for SubCategoryCondition Object.
            /// </summary>
		public SubCategoryCondition (){
			this.subCategoryId = int.MinValue;
			this.categoryId = string.Empty;
			this.subCategoryCode = string.Empty;
			this.published = string.Empty;
			this.order = int.MinValue;
this.sortExpression = string.Empty;
this.sortField = string.Empty;
		}
         /// <summary>
            /// Define constructor for SubCategoryCondition Object.
            /// </summary>
		public SubCategoryCondition ( int subCategoryId, 
					string categoryId, 
					string subCategoryCode, 
					string published, 
					int order ) {
			this.subCategoryId = subCategoryId;
			this.categoryId = categoryId;
			this.subCategoryCode = subCategoryCode;
			this.published = published;
			this.order = order;
this.sortExpression = string.Empty;
this.sortField = string.Empty;
		}
		#endregion constructor
		#region properties
              /// <summary>
            /// Define SubCategoryId Property.
            /// </summary>
		public int SubCategoryId {
			get { return this.subCategoryId; }
			set { this.subCategoryId = value; }
		}
              /// <summary>
            /// Define CategoryId Property.
            /// </summary>
		public string CategoryId {
			get { return this.categoryId; }
			set { this.categoryId = value; }
		}
              /// <summary>
            /// Define SubCategoryCode Property.
            /// </summary>
		public string SubCategoryCode {
			get { return this.subCategoryCode; }
			set { this.subCategoryCode = value; }
		}
              /// <summary>
            /// Define Published Property.
            /// </summary>
		public string Published {
			get { return this.published; }
			set { this.published = value; }
		}
              /// <summary>
            /// Define Order Property.
            /// </summary>
		public int Order {
			get { return this.order; }
			set { this.order = value; }
		}

              /// <summary>
            /// Define SortExpression Property.
            /// </summary>
            public string SortExpression
        {
            get
            {
                return this.sortExpression;
            }
            set
            {
                this.sortExpression = value;
            }
        }
            /// <summary>
            /// Define SortField Property.
            /// </summary>
        public string SortField
        {
            get
            {
                return this.sortField;
            }
            set
            {
                this.sortField = value;
            }
        }
		#endregion properties
	}
}